Skip to content

feat: Added the ability to click on elements using the data-test selector.#209

Open
dmitritarasov wants to merge 3 commits intopestphp:4.xfrom
dmitritarasov:click-selector
Open

feat: Added the ability to click on elements using the data-test selector.#209
dmitritarasov wants to merge 3 commits intopestphp:4.xfrom
dmitritarasov:click-selector

Conversation

@dmitritarasov
Copy link
Copy Markdown

Add new clickSelector() method to InteractsWithElements trait

Allows clicking on elements by directly passing a data-test selector string

@dmitritarasov dmitritarasov changed the title Added the ability to click on elements using the data-test selector. feat: Added the ability to click on elements using the data-test selector. Apr 17, 2026
@nunomaduro
Copy link
Copy Markdown
Member

what's is the difference between this and click?

@dmitritarasov
Copy link
Copy Markdown
Author

The current PHPDoc says 'link with text' which is misleading. Let's just update it to reflect the actual smart selector behavior. Then clickSelector() is not needed.

Updated the PR — replaced the duplicate method with an improved PHPDoc for click() instead. Please take another look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants